package definite.Guide.Book.JFrame;

public class Note1 {
	/*
	 * Handling JFrame Events TheJFrameclass supports the registration of eleven
	 * different listeners: • ComponentListener: To find out when the frame
	 * moves or is resized. • ContainerListener: Normally not added to a
	 * JFramebecause you add compone content pane of its JRootPane. •
	 * FocusListener: To find out when the frame gets or loses input focus. •
	 * HierarchyBoundsListener: To find out when the frame moves or is resized.
	 * This works similarly to ComponentListener, since the frame is the
	 * top-level container of component. • HierarchyListener: To find out when
	 * the frame is shown or hidden. • InputMethodListener: To work with input
	 * methods for internationalization. • KeyListener: Normally not added to a
	 * JFrame. Instead, you register a keyboard action for its content pane,
	 * like this: JPanel content = (JPanel)frame.getContentPane(); KeyStroke
	 * stroke = KeyStroke.getKeyStroke(KeyEvent.VK_ESCAPE, 0);
	 * content.registerKeyboardAction(actionListener, stroke,
	 * JComponent.WHEN_IN_FOCUSED_WINDOW); • MouseListenerand
	 * MouseMotionListener: To listen for mouse and mouse motion events. •
	 * PropertyChangeListener: To listen for changes to bound properties. •
	 * WindowListener: To find out when a window is iconified or deiconified or
	 * a user is trying to open or close the window.
	 */
}
